<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ page import="com.biz.utils.ConfigUtil" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String resoursUrl = ConfigUtil.get("RESOURCES_URL");
%>

<!doctype html>
<html class="no-js" >
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>个人中心</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<meta name="format-detection" content="telephone=no" />
	<jsp:include page="/jsp/inc.jsp"></jsp:include>
	<style>


	</style>
</head>
<body style="padding-bottom: 1.1rem;">
<div class="mytop">
	<div class="mytx">
		<c:if test="${pbaseUser.cover == ''}">
			<img src="<%=basePath%>resources/image/mytx.png" class="mytxtx"/>
		</c:if>
		<c:if test="${pbaseUser.cover != ''}">
			<img src="${pbaseUser.cover}" class="mytxtx"/>
		</c:if>
	</div>
	<div class="myname">${pbaseUser.personName}</div>
	<div class="mytwolie">
		<ul class="m-grids-2 mytwo" onclick="toIntegralDetail();">
			<li class="grids-item">
				<div class="grids-txt">累计积分：${pbaseUser.integralTotal.intValue()}</div>
			</li>
			<li class="grids-item">
				<div class="grids-txt">可兑积分：${pbaseUser.integralNow.intValue()}</div>
			</li>
		</ul>
	</div>
</div>

<div class="m-cell mylie">
	<div class="cell-item padleft0" onclick="toMyApplyList();">
		<div class="cell-left">
			<i class="cell-icon mylieicon"><img src="<%=basePath%>resources/image/icon-myactive.png"/></i>
			我报名的活动
		</div>
		<div class="cell-right">
			<i class="next-ico arrow_right"></i>
		</div>
	</div>
	<div class="cell-item padleft0"  onclick="toUserInfo();">
		<div class="cell-left">
			<i class="cell-icon mylieicon"><img src="<%=basePath%>resources/image/icon-perzl.png"/></i>
			个人资料
		</div>
		<div class="cell-right">
			<i class="next-ico arrow_right"></i>
		</div>
	</div>
	<div class="cell-item padleft0" onclick="toIntegralMall();">
		<div class="cell-left">
			<i class="cell-icon mylieicon"><img src="<%=basePath%>resources/image/icon-codeshop.png"/></i>积分商城</div>
		<div class="cell-right">
			<i class="next-ico arrow_right"></i>
		</div>
	</div>
	<div class="cell-item padleft0" onclick="toChargeList();">
		<div class="cell-left">
			<i class="cell-icon mylieicon"><img src="<%=basePath%>resources/image/icon-exchange.png"/></i>兑换记录</div>
		<div class="cell-right">
			<i class="next-ico arrow_right"></i>
		</div>
	</div>
</div>

<div class="btmfooter">
	<div class="fl-l foter" onclick="toMebList()">
		<img src="<%=basePath%>resources/image/icon-active-grey.png" alt="" class="">
		<div class="txt">活动</div>
	</div>
	<div class="fl-r foter on">
		<img src="<%=basePath%>resources/image/icon-my-blue.png" alt="" class="">
		<div class="txt">我的</div>
	</div>
	<br class="clear"/>
</div>
<script>
    function toMyApplyList()
    {
        window.location.href="${pageContext.request.contextPath}/userCenter/toMyApplyList.ac";
    }
    //跳转活动列表
    function toMebList() {
        window.location.href='${pageContext.request.contextPath}/mebactivity/toMebactivityList.ac';
    }

    //跳转个人资料
	function toUserInfo(){
        window.location.href='${pageContext.request.contextPath}/userCenter/toUserInfo.ac';
	}

	//跳转累计积分
	function toIntegralDetail()
	{
        window.location.href='${pageContext.request.contextPath}/userCenter/toInteralTotal.ac';
	}

    //商城列表
    function toIntegralMall(){
        window.location.href='${pageContext.request.contextPath}/goods/toGoodsList.ac';
    }

    //兑换记录
	function toChargeList()
	{
        window.location.href='${pageContext.request.contextPath}/goods/toChargeHistory.ac';
	}
</script>
</body>
</html>
